package com.tm.model;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

public class SpSpellGroupCriteria {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public SpSpellGroupCriteria() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andSpellIdIsNull() {
            addCriterion("spell_id is null");
            return (Criteria) this;
        }

        public Criteria andSpellIdIsNotNull() {
            addCriterion("spell_id is not null");
            return (Criteria) this;
        }

        public Criteria andSpellIdEqualTo(Integer value) {
            addCriterion("spell_id =", value, "spellId");
            return (Criteria) this;
        }

        public Criteria andSpellIdNotEqualTo(Integer value) {
            addCriterion("spell_id <>", value, "spellId");
            return (Criteria) this;
        }

        public Criteria andSpellIdGreaterThan(Integer value) {
            addCriterion("spell_id >", value, "spellId");
            return (Criteria) this;
        }

        public Criteria andSpellIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("spell_id >=", value, "spellId");
            return (Criteria) this;
        }

        public Criteria andSpellIdLessThan(Integer value) {
            addCriterion("spell_id <", value, "spellId");
            return (Criteria) this;
        }

        public Criteria andSpellIdLessThanOrEqualTo(Integer value) {
            addCriterion("spell_id <=", value, "spellId");
            return (Criteria) this;
        }

        public Criteria andSpellIdIn(List<Integer> values) {
            addCriterion("spell_id in", values, "spellId");
            return (Criteria) this;
        }

        public Criteria andSpellIdNotIn(List<Integer> values) {
            addCriterion("spell_id not in", values, "spellId");
            return (Criteria) this;
        }

        public Criteria andSpellIdBetween(Integer value1, Integer value2) {
            addCriterion("spell_id between", value1, value2, "spellId");
            return (Criteria) this;
        }

        public Criteria andSpellIdNotBetween(Integer value1, Integer value2) {
            addCriterion("spell_id not between", value1, value2, "spellId");
            return (Criteria) this;
        }

        public Criteria andSkuIdIsNull() {
            addCriterion("sku_id is null");
            return (Criteria) this;
        }

        public Criteria andSkuIdIsNotNull() {
            addCriterion("sku_id is not null");
            return (Criteria) this;
        }

        public Criteria andSkuIdEqualTo(Integer value) {
            addCriterion("sku_id =", value, "skuId");
            return (Criteria) this;
        }

        public Criteria andSkuIdNotEqualTo(Integer value) {
            addCriterion("sku_id <>", value, "skuId");
            return (Criteria) this;
        }

        public Criteria andSkuIdGreaterThan(Integer value) {
            addCriterion("sku_id >", value, "skuId");
            return (Criteria) this;
        }

        public Criteria andSkuIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("sku_id >=", value, "skuId");
            return (Criteria) this;
        }

        public Criteria andSkuIdLessThan(Integer value) {
            addCriterion("sku_id <", value, "skuId");
            return (Criteria) this;
        }

        public Criteria andSkuIdLessThanOrEqualTo(Integer value) {
            addCriterion("sku_id <=", value, "skuId");
            return (Criteria) this;
        }

        public Criteria andSkuIdIn(List<Integer> values) {
            addCriterion("sku_id in", values, "skuId");
            return (Criteria) this;
        }

        public Criteria andSkuIdNotIn(List<Integer> values) {
            addCriterion("sku_id not in", values, "skuId");
            return (Criteria) this;
        }

        public Criteria andSkuIdBetween(Integer value1, Integer value2) {
            addCriterion("sku_id between", value1, value2, "skuId");
            return (Criteria) this;
        }

        public Criteria andSkuIdNotBetween(Integer value1, Integer value2) {
            addCriterion("sku_id not between", value1, value2, "skuId");
            return (Criteria) this;
        }

        public Criteria andPrePriceIsNull() {
            addCriterion("pre_price is null");
            return (Criteria) this;
        }

        public Criteria andPrePriceIsNotNull() {
            addCriterion("pre_price is not null");
            return (Criteria) this;
        }

        public Criteria andPrePriceEqualTo(BigDecimal value) {
            addCriterion("pre_price =", value, "prePrice");
            return (Criteria) this;
        }

        public Criteria andPrePriceNotEqualTo(BigDecimal value) {
            addCriterion("pre_price <>", value, "prePrice");
            return (Criteria) this;
        }

        public Criteria andPrePriceGreaterThan(BigDecimal value) {
            addCriterion("pre_price >", value, "prePrice");
            return (Criteria) this;
        }

        public Criteria andPrePriceGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("pre_price >=", value, "prePrice");
            return (Criteria) this;
        }

        public Criteria andPrePriceLessThan(BigDecimal value) {
            addCriterion("pre_price <", value, "prePrice");
            return (Criteria) this;
        }

        public Criteria andPrePriceLessThanOrEqualTo(BigDecimal value) {
            addCriterion("pre_price <=", value, "prePrice");
            return (Criteria) this;
        }

        public Criteria andPrePriceIn(List<BigDecimal> values) {
            addCriterion("pre_price in", values, "prePrice");
            return (Criteria) this;
        }

        public Criteria andPrePriceNotIn(List<BigDecimal> values) {
            addCriterion("pre_price not in", values, "prePrice");
            return (Criteria) this;
        }

        public Criteria andPrePriceBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("pre_price between", value1, value2, "prePrice");
            return (Criteria) this;
        }

        public Criteria andPrePriceNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("pre_price not between", value1, value2, "prePrice");
            return (Criteria) this;
        }

        public Criteria andSpellTitleIsNull() {
            addCriterion("spell_title is null");
            return (Criteria) this;
        }

        public Criteria andSpellTitleIsNotNull() {
            addCriterion("spell_title is not null");
            return (Criteria) this;
        }

        public Criteria andSpellTitleEqualTo(String value) {
            addCriterion("spell_title =", value, "spellTitle");
            return (Criteria) this;
        }

        public Criteria andSpellTitleNotEqualTo(String value) {
            addCriterion("spell_title <>", value, "spellTitle");
            return (Criteria) this;
        }

        public Criteria andSpellTitleGreaterThan(String value) {
            addCriterion("spell_title >", value, "spellTitle");
            return (Criteria) this;
        }

        public Criteria andSpellTitleGreaterThanOrEqualTo(String value) {
            addCriterion("spell_title >=", value, "spellTitle");
            return (Criteria) this;
        }

        public Criteria andSpellTitleLessThan(String value) {
            addCriterion("spell_title <", value, "spellTitle");
            return (Criteria) this;
        }

        public Criteria andSpellTitleLessThanOrEqualTo(String value) {
            addCriterion("spell_title <=", value, "spellTitle");
            return (Criteria) this;
        }

        public Criteria andSpellTitleLike(String value) {
            addCriterion("spell_title like", value, "spellTitle");
            return (Criteria) this;
        }

        public Criteria andSpellTitleNotLike(String value) {
            addCriterion("spell_title not like", value, "spellTitle");
            return (Criteria) this;
        }

        public Criteria andSpellTitleIn(List<String> values) {
            addCriterion("spell_title in", values, "spellTitle");
            return (Criteria) this;
        }

        public Criteria andSpellTitleNotIn(List<String> values) {
            addCriterion("spell_title not in", values, "spellTitle");
            return (Criteria) this;
        }

        public Criteria andSpellTitleBetween(String value1, String value2) {
            addCriterion("spell_title between", value1, value2, "spellTitle");
            return (Criteria) this;
        }

        public Criteria andSpellTitleNotBetween(String value1, String value2) {
            addCriterion("spell_title not between", value1, value2, "spellTitle");
            return (Criteria) this;
        }

        public Criteria andSpellAdvertOneIsNull() {
            addCriterion("spell_advert_one is null");
            return (Criteria) this;
        }

        public Criteria andSpellAdvertOneIsNotNull() {
            addCriterion("spell_advert_one is not null");
            return (Criteria) this;
        }

        public Criteria andSpellAdvertOneEqualTo(String value) {
            addCriterion("spell_advert_one =", value, "spellAdvertOne");
            return (Criteria) this;
        }

        public Criteria andSpellAdvertOneNotEqualTo(String value) {
            addCriterion("spell_advert_one <>", value, "spellAdvertOne");
            return (Criteria) this;
        }

        public Criteria andSpellAdvertOneGreaterThan(String value) {
            addCriterion("spell_advert_one >", value, "spellAdvertOne");
            return (Criteria) this;
        }

        public Criteria andSpellAdvertOneGreaterThanOrEqualTo(String value) {
            addCriterion("spell_advert_one >=", value, "spellAdvertOne");
            return (Criteria) this;
        }

        public Criteria andSpellAdvertOneLessThan(String value) {
            addCriterion("spell_advert_one <", value, "spellAdvertOne");
            return (Criteria) this;
        }

        public Criteria andSpellAdvertOneLessThanOrEqualTo(String value) {
            addCriterion("spell_advert_one <=", value, "spellAdvertOne");
            return (Criteria) this;
        }

        public Criteria andSpellAdvertOneLike(String value) {
            addCriterion("spell_advert_one like", value, "spellAdvertOne");
            return (Criteria) this;
        }

        public Criteria andSpellAdvertOneNotLike(String value) {
            addCriterion("spell_advert_one not like", value, "spellAdvertOne");
            return (Criteria) this;
        }

        public Criteria andSpellAdvertOneIn(List<String> values) {
            addCriterion("spell_advert_one in", values, "spellAdvertOne");
            return (Criteria) this;
        }

        public Criteria andSpellAdvertOneNotIn(List<String> values) {
            addCriterion("spell_advert_one not in", values, "spellAdvertOne");
            return (Criteria) this;
        }

        public Criteria andSpellAdvertOneBetween(String value1, String value2) {
            addCriterion("spell_advert_one between", value1, value2, "spellAdvertOne");
            return (Criteria) this;
        }

        public Criteria andSpellAdvertOneNotBetween(String value1, String value2) {
            addCriterion("spell_advert_one not between", value1, value2, "spellAdvertOne");
            return (Criteria) this;
        }

        public Criteria andSpellAdvertTwoIsNull() {
            addCriterion("spell_advert_two is null");
            return (Criteria) this;
        }

        public Criteria andSpellAdvertTwoIsNotNull() {
            addCriterion("spell_advert_two is not null");
            return (Criteria) this;
        }

        public Criteria andSpellAdvertTwoEqualTo(String value) {
            addCriterion("spell_advert_two =", value, "spellAdvertTwo");
            return (Criteria) this;
        }

        public Criteria andSpellAdvertTwoNotEqualTo(String value) {
            addCriterion("spell_advert_two <>", value, "spellAdvertTwo");
            return (Criteria) this;
        }

        public Criteria andSpellAdvertTwoGreaterThan(String value) {
            addCriterion("spell_advert_two >", value, "spellAdvertTwo");
            return (Criteria) this;
        }

        public Criteria andSpellAdvertTwoGreaterThanOrEqualTo(String value) {
            addCriterion("spell_advert_two >=", value, "spellAdvertTwo");
            return (Criteria) this;
        }

        public Criteria andSpellAdvertTwoLessThan(String value) {
            addCriterion("spell_advert_two <", value, "spellAdvertTwo");
            return (Criteria) this;
        }

        public Criteria andSpellAdvertTwoLessThanOrEqualTo(String value) {
            addCriterion("spell_advert_two <=", value, "spellAdvertTwo");
            return (Criteria) this;
        }

        public Criteria andSpellAdvertTwoLike(String value) {
            addCriterion("spell_advert_two like", value, "spellAdvertTwo");
            return (Criteria) this;
        }

        public Criteria andSpellAdvertTwoNotLike(String value) {
            addCriterion("spell_advert_two not like", value, "spellAdvertTwo");
            return (Criteria) this;
        }

        public Criteria andSpellAdvertTwoIn(List<String> values) {
            addCriterion("spell_advert_two in", values, "spellAdvertTwo");
            return (Criteria) this;
        }

        public Criteria andSpellAdvertTwoNotIn(List<String> values) {
            addCriterion("spell_advert_two not in", values, "spellAdvertTwo");
            return (Criteria) this;
        }

        public Criteria andSpellAdvertTwoBetween(String value1, String value2) {
            addCriterion("spell_advert_two between", value1, value2, "spellAdvertTwo");
            return (Criteria) this;
        }

        public Criteria andSpellAdvertTwoNotBetween(String value1, String value2) {
            addCriterion("spell_advert_two not between", value1, value2, "spellAdvertTwo");
            return (Criteria) this;
        }

        public Criteria andSpellAdvertThreeIsNull() {
            addCriterion("spell_advert_three is null");
            return (Criteria) this;
        }

        public Criteria andSpellAdvertThreeIsNotNull() {
            addCriterion("spell_advert_three is not null");
            return (Criteria) this;
        }

        public Criteria andSpellAdvertThreeEqualTo(String value) {
            addCriterion("spell_advert_three =", value, "spellAdvertThree");
            return (Criteria) this;
        }

        public Criteria andSpellAdvertThreeNotEqualTo(String value) {
            addCriterion("spell_advert_three <>", value, "spellAdvertThree");
            return (Criteria) this;
        }

        public Criteria andSpellAdvertThreeGreaterThan(String value) {
            addCriterion("spell_advert_three >", value, "spellAdvertThree");
            return (Criteria) this;
        }

        public Criteria andSpellAdvertThreeGreaterThanOrEqualTo(String value) {
            addCriterion("spell_advert_three >=", value, "spellAdvertThree");
            return (Criteria) this;
        }

        public Criteria andSpellAdvertThreeLessThan(String value) {
            addCriterion("spell_advert_three <", value, "spellAdvertThree");
            return (Criteria) this;
        }

        public Criteria andSpellAdvertThreeLessThanOrEqualTo(String value) {
            addCriterion("spell_advert_three <=", value, "spellAdvertThree");
            return (Criteria) this;
        }

        public Criteria andSpellAdvertThreeLike(String value) {
            addCriterion("spell_advert_three like", value, "spellAdvertThree");
            return (Criteria) this;
        }

        public Criteria andSpellAdvertThreeNotLike(String value) {
            addCriterion("spell_advert_three not like", value, "spellAdvertThree");
            return (Criteria) this;
        }

        public Criteria andSpellAdvertThreeIn(List<String> values) {
            addCriterion("spell_advert_three in", values, "spellAdvertThree");
            return (Criteria) this;
        }

        public Criteria andSpellAdvertThreeNotIn(List<String> values) {
            addCriterion("spell_advert_three not in", values, "spellAdvertThree");
            return (Criteria) this;
        }

        public Criteria andSpellAdvertThreeBetween(String value1, String value2) {
            addCriterion("spell_advert_three between", value1, value2, "spellAdvertThree");
            return (Criteria) this;
        }

        public Criteria andSpellAdvertThreeNotBetween(String value1, String value2) {
            addCriterion("spell_advert_three not between", value1, value2, "spellAdvertThree");
            return (Criteria) this;
        }

        public Criteria andSpellDescribeIsNull() {
            addCriterion("spell_describe is null");
            return (Criteria) this;
        }

        public Criteria andSpellDescribeIsNotNull() {
            addCriterion("spell_describe is not null");
            return (Criteria) this;
        }

        public Criteria andSpellDescribeEqualTo(String value) {
            addCriterion("spell_describe =", value, "spellDescribe");
            return (Criteria) this;
        }

        public Criteria andSpellDescribeNotEqualTo(String value) {
            addCriterion("spell_describe <>", value, "spellDescribe");
            return (Criteria) this;
        }

        public Criteria andSpellDescribeGreaterThan(String value) {
            addCriterion("spell_describe >", value, "spellDescribe");
            return (Criteria) this;
        }

        public Criteria andSpellDescribeGreaterThanOrEqualTo(String value) {
            addCriterion("spell_describe >=", value, "spellDescribe");
            return (Criteria) this;
        }

        public Criteria andSpellDescribeLessThan(String value) {
            addCriterion("spell_describe <", value, "spellDescribe");
            return (Criteria) this;
        }

        public Criteria andSpellDescribeLessThanOrEqualTo(String value) {
            addCriterion("spell_describe <=", value, "spellDescribe");
            return (Criteria) this;
        }

        public Criteria andSpellDescribeLike(String value) {
            addCriterion("spell_describe like", value, "spellDescribe");
            return (Criteria) this;
        }

        public Criteria andSpellDescribeNotLike(String value) {
            addCriterion("spell_describe not like", value, "spellDescribe");
            return (Criteria) this;
        }

        public Criteria andSpellDescribeIn(List<String> values) {
            addCriterion("spell_describe in", values, "spellDescribe");
            return (Criteria) this;
        }

        public Criteria andSpellDescribeNotIn(List<String> values) {
            addCriterion("spell_describe not in", values, "spellDescribe");
            return (Criteria) this;
        }

        public Criteria andSpellDescribeBetween(String value1, String value2) {
            addCriterion("spell_describe between", value1, value2, "spellDescribe");
            return (Criteria) this;
        }

        public Criteria andSpellDescribeNotBetween(String value1, String value2) {
            addCriterion("spell_describe not between", value1, value2, "spellDescribe");
            return (Criteria) this;
        }

        public Criteria andStartDateIsNull() {
            addCriterion("start_date is null");
            return (Criteria) this;
        }

        public Criteria andStartDateIsNotNull() {
            addCriterion("start_date is not null");
            return (Criteria) this;
        }

        public Criteria andStartDateEqualTo(String value) {
            addCriterion("start_date =", value, "startDate");
            return (Criteria) this;
        }

        public Criteria andStartDateNotEqualTo(String value) {
            addCriterion("start_date <>", value, "startDate");
            return (Criteria) this;
        }

        public Criteria andStartDateGreaterThan(String value) {
            addCriterion("start_date >", value, "startDate");
            return (Criteria) this;
        }

        public Criteria andStartDateGreaterThanOrEqualTo(String value) {
            addCriterion("start_date >=", value, "startDate");
            return (Criteria) this;
        }

        public Criteria andStartDateLessThan(String value) {
            addCriterion("start_date <", value, "startDate");
            return (Criteria) this;
        }

        public Criteria andStartDateLessThanOrEqualTo(String value) {
            addCriterion("start_date <=", value, "startDate");
            return (Criteria) this;
        }

        public Criteria andStartDateLike(String value) {
            addCriterion("start_date like", value, "startDate");
            return (Criteria) this;
        }

        public Criteria andStartDateNotLike(String value) {
            addCriterion("start_date not like", value, "startDate");
            return (Criteria) this;
        }

        public Criteria andStartDateIn(List<String> values) {
            addCriterion("start_date in", values, "startDate");
            return (Criteria) this;
        }

        public Criteria andStartDateNotIn(List<String> values) {
            addCriterion("start_date not in", values, "startDate");
            return (Criteria) this;
        }

        public Criteria andStartDateBetween(String value1, String value2) {
            addCriterion("start_date between", value1, value2, "startDate");
            return (Criteria) this;
        }

        public Criteria andStartDateNotBetween(String value1, String value2) {
            addCriterion("start_date not between", value1, value2, "startDate");
            return (Criteria) this;
        }

        public Criteria andEndDateIsNull() {
            addCriterion("end_date is null");
            return (Criteria) this;
        }

        public Criteria andEndDateIsNotNull() {
            addCriterion("end_date is not null");
            return (Criteria) this;
        }

        public Criteria andEndDateEqualTo(String value) {
            addCriterion("end_date =", value, "endDate");
            return (Criteria) this;
        }

        public Criteria andEndDateNotEqualTo(String value) {
            addCriterion("end_date <>", value, "endDate");
            return (Criteria) this;
        }

        public Criteria andEndDateGreaterThan(String value) {
            addCriterion("end_date >", value, "endDate");
            return (Criteria) this;
        }

        public Criteria andEndDateGreaterThanOrEqualTo(String value) {
            addCriterion("end_date >=", value, "endDate");
            return (Criteria) this;
        }

        public Criteria andEndDateLessThan(String value) {
            addCriterion("end_date <", value, "endDate");
            return (Criteria) this;
        }

        public Criteria andEndDateLessThanOrEqualTo(String value) {
            addCriterion("end_date <=", value, "endDate");
            return (Criteria) this;
        }

        public Criteria andEndDateLike(String value) {
            addCriterion("end_date like", value, "endDate");
            return (Criteria) this;
        }

        public Criteria andEndDateNotLike(String value) {
            addCriterion("end_date not like", value, "endDate");
            return (Criteria) this;
        }

        public Criteria andEndDateIn(List<String> values) {
            addCriterion("end_date in", values, "endDate");
            return (Criteria) this;
        }

        public Criteria andEndDateNotIn(List<String> values) {
            addCriterion("end_date not in", values, "endDate");
            return (Criteria) this;
        }

        public Criteria andEndDateBetween(String value1, String value2) {
            addCriterion("end_date between", value1, value2, "endDate");
            return (Criteria) this;
        }

        public Criteria andEndDateNotBetween(String value1, String value2) {
            addCriterion("end_date not between", value1, value2, "endDate");
            return (Criteria) this;
        }

        public Criteria andNumPeopIsNull() {
            addCriterion("num_peop is null");
            return (Criteria) this;
        }

        public Criteria andNumPeopIsNotNull() {
            addCriterion("num_peop is not null");
            return (Criteria) this;
        }

        public Criteria andNumPeopEqualTo(Integer value) {
            addCriterion("num_peop =", value, "numPeop");
            return (Criteria) this;
        }

        public Criteria andNumPeopNotEqualTo(Integer value) {
            addCriterion("num_peop <>", value, "numPeop");
            return (Criteria) this;
        }

        public Criteria andNumPeopGreaterThan(Integer value) {
            addCriterion("num_peop >", value, "numPeop");
            return (Criteria) this;
        }

        public Criteria andNumPeopGreaterThanOrEqualTo(Integer value) {
            addCriterion("num_peop >=", value, "numPeop");
            return (Criteria) this;
        }

        public Criteria andNumPeopLessThan(Integer value) {
            addCriterion("num_peop <", value, "numPeop");
            return (Criteria) this;
        }

        public Criteria andNumPeopLessThanOrEqualTo(Integer value) {
            addCriterion("num_peop <=", value, "numPeop");
            return (Criteria) this;
        }

        public Criteria andNumPeopIn(List<Integer> values) {
            addCriterion("num_peop in", values, "numPeop");
            return (Criteria) this;
        }

        public Criteria andNumPeopNotIn(List<Integer> values) {
            addCriterion("num_peop not in", values, "numPeop");
            return (Criteria) this;
        }

        public Criteria andNumPeopBetween(Integer value1, Integer value2) {
            addCriterion("num_peop between", value1, value2, "numPeop");
            return (Criteria) this;
        }

        public Criteria andNumPeopNotBetween(Integer value1, Integer value2) {
            addCriterion("num_peop not between", value1, value2, "numPeop");
            return (Criteria) this;
        }

        public Criteria andNowSpellPeopIsNull() {
            addCriterion("now_spell_peop is null");
            return (Criteria) this;
        }

        public Criteria andNowSpellPeopIsNotNull() {
            addCriterion("now_spell_peop is not null");
            return (Criteria) this;
        }

        public Criteria andNowSpellPeopEqualTo(Integer value) {
            addCriterion("now_spell_peop =", value, "nowSpellPeop");
            return (Criteria) this;
        }

        public Criteria andNowSpellPeopNotEqualTo(Integer value) {
            addCriterion("now_spell_peop <>", value, "nowSpellPeop");
            return (Criteria) this;
        }

        public Criteria andNowSpellPeopGreaterThan(Integer value) {
            addCriterion("now_spell_peop >", value, "nowSpellPeop");
            return (Criteria) this;
        }

        public Criteria andNowSpellPeopGreaterThanOrEqualTo(Integer value) {
            addCriterion("now_spell_peop >=", value, "nowSpellPeop");
            return (Criteria) this;
        }

        public Criteria andNowSpellPeopLessThan(Integer value) {
            addCriterion("now_spell_peop <", value, "nowSpellPeop");
            return (Criteria) this;
        }

        public Criteria andNowSpellPeopLessThanOrEqualTo(Integer value) {
            addCriterion("now_spell_peop <=", value, "nowSpellPeop");
            return (Criteria) this;
        }

        public Criteria andNowSpellPeopIn(List<Integer> values) {
            addCriterion("now_spell_peop in", values, "nowSpellPeop");
            return (Criteria) this;
        }

        public Criteria andNowSpellPeopNotIn(List<Integer> values) {
            addCriterion("now_spell_peop not in", values, "nowSpellPeop");
            return (Criteria) this;
        }

        public Criteria andNowSpellPeopBetween(Integer value1, Integer value2) {
            addCriterion("now_spell_peop between", value1, value2, "nowSpellPeop");
            return (Criteria) this;
        }

        public Criteria andNowSpellPeopNotBetween(Integer value1, Integer value2) {
            addCriterion("now_spell_peop not between", value1, value2, "nowSpellPeop");
            return (Criteria) this;
        }

        public Criteria andSpellStatusIsNull() {
            addCriterion("spell_status is null");
            return (Criteria) this;
        }

        public Criteria andSpellStatusIsNotNull() {
            addCriterion("spell_status is not null");
            return (Criteria) this;
        }

        public Criteria andSpellStatusEqualTo(String value) {
            addCriterion("spell_status =", value, "spellStatus");
            return (Criteria) this;
        }

        public Criteria andSpellStatusNotEqualTo(String value) {
            addCriterion("spell_status <>", value, "spellStatus");
            return (Criteria) this;
        }

        public Criteria andSpellStatusGreaterThan(String value) {
            addCriterion("spell_status >", value, "spellStatus");
            return (Criteria) this;
        }

        public Criteria andSpellStatusGreaterThanOrEqualTo(String value) {
            addCriterion("spell_status >=", value, "spellStatus");
            return (Criteria) this;
        }

        public Criteria andSpellStatusLessThan(String value) {
            addCriterion("spell_status <", value, "spellStatus");
            return (Criteria) this;
        }

        public Criteria andSpellStatusLessThanOrEqualTo(String value) {
            addCriterion("spell_status <=", value, "spellStatus");
            return (Criteria) this;
        }

        public Criteria andSpellStatusLike(String value) {
            addCriterion("spell_status like", value, "spellStatus");
            return (Criteria) this;
        }

        public Criteria andSpellStatusNotLike(String value) {
            addCriterion("spell_status not like", value, "spellStatus");
            return (Criteria) this;
        }

        public Criteria andSpellStatusIn(List<String> values) {
            addCriterion("spell_status in", values, "spellStatus");
            return (Criteria) this;
        }

        public Criteria andSpellStatusNotIn(List<String> values) {
            addCriterion("spell_status not in", values, "spellStatus");
            return (Criteria) this;
        }

        public Criteria andSpellStatusBetween(String value1, String value2) {
            addCriterion("spell_status between", value1, value2, "spellStatus");
            return (Criteria) this;
        }

        public Criteria andSpellStatusNotBetween(String value1, String value2) {
            addCriterion("spell_status not between", value1, value2, "spellStatus");
            return (Criteria) this;
        }

        public Criteria andIsStatusIsNull() {
            addCriterion("is_status is null");
            return (Criteria) this;
        }

        public Criteria andIsStatusIsNotNull() {
            addCriterion("is_status is not null");
            return (Criteria) this;
        }

        public Criteria andIsStatusEqualTo(String value) {
            addCriterion("is_status =", value, "isStatus");
            return (Criteria) this;
        }

        public Criteria andIsStatusNotEqualTo(String value) {
            addCriterion("is_status <>", value, "isStatus");
            return (Criteria) this;
        }

        public Criteria andIsStatusGreaterThan(String value) {
            addCriterion("is_status >", value, "isStatus");
            return (Criteria) this;
        }

        public Criteria andIsStatusGreaterThanOrEqualTo(String value) {
            addCriterion("is_status >=", value, "isStatus");
            return (Criteria) this;
        }

        public Criteria andIsStatusLessThan(String value) {
            addCriterion("is_status <", value, "isStatus");
            return (Criteria) this;
        }

        public Criteria andIsStatusLessThanOrEqualTo(String value) {
            addCriterion("is_status <=", value, "isStatus");
            return (Criteria) this;
        }

        public Criteria andIsStatusLike(String value) {
            addCriterion("is_status like", value, "isStatus");
            return (Criteria) this;
        }

        public Criteria andIsStatusNotLike(String value) {
            addCriterion("is_status not like", value, "isStatus");
            return (Criteria) this;
        }

        public Criteria andIsStatusIn(List<String> values) {
            addCriterion("is_status in", values, "isStatus");
            return (Criteria) this;
        }

        public Criteria andIsStatusNotIn(List<String> values) {
            addCriterion("is_status not in", values, "isStatus");
            return (Criteria) this;
        }

        public Criteria andIsStatusBetween(String value1, String value2) {
            addCriterion("is_status between", value1, value2, "isStatus");
            return (Criteria) this;
        }

        public Criteria andIsStatusNotBetween(String value1, String value2) {
            addCriterion("is_status not between", value1, value2, "isStatus");
            return (Criteria) this;
        }

        public Criteria andRemarkIsNull() {
            addCriterion("remark is null");
            return (Criteria) this;
        }

        public Criteria andRemarkIsNotNull() {
            addCriterion("remark is not null");
            return (Criteria) this;
        }

        public Criteria andRemarkEqualTo(String value) {
            addCriterion("remark =", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotEqualTo(String value) {
            addCriterion("remark <>", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkGreaterThan(String value) {
            addCriterion("remark >", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkGreaterThanOrEqualTo(String value) {
            addCriterion("remark >=", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkLessThan(String value) {
            addCriterion("remark <", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkLessThanOrEqualTo(String value) {
            addCriterion("remark <=", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkLike(String value) {
            addCriterion("remark like", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotLike(String value) {
            addCriterion("remark not like", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkIn(List<String> values) {
            addCriterion("remark in", values, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotIn(List<String> values) {
            addCriterion("remark not in", values, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkBetween(String value1, String value2) {
            addCriterion("remark between", value1, value2, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotBetween(String value1, String value2) {
            addCriterion("remark not between", value1, value2, "remark");
            return (Criteria) this;
        }

        public Criteria andIsDeleteIsNull() {
            addCriterion("is_delete is null");
            return (Criteria) this;
        }

        public Criteria andIsDeleteIsNotNull() {
            addCriterion("is_delete is not null");
            return (Criteria) this;
        }

        public Criteria andIsDeleteEqualTo(String value) {
            addCriterion("is_delete =", value, "isDelete");
            return (Criteria) this;
        }

        public Criteria andIsDeleteNotEqualTo(String value) {
            addCriterion("is_delete <>", value, "isDelete");
            return (Criteria) this;
        }

        public Criteria andIsDeleteGreaterThan(String value) {
            addCriterion("is_delete >", value, "isDelete");
            return (Criteria) this;
        }

        public Criteria andIsDeleteGreaterThanOrEqualTo(String value) {
            addCriterion("is_delete >=", value, "isDelete");
            return (Criteria) this;
        }

        public Criteria andIsDeleteLessThan(String value) {
            addCriterion("is_delete <", value, "isDelete");
            return (Criteria) this;
        }

        public Criteria andIsDeleteLessThanOrEqualTo(String value) {
            addCriterion("is_delete <=", value, "isDelete");
            return (Criteria) this;
        }

        public Criteria andIsDeleteLike(String value) {
            addCriterion("is_delete like", value, "isDelete");
            return (Criteria) this;
        }

        public Criteria andIsDeleteNotLike(String value) {
            addCriterion("is_delete not like", value, "isDelete");
            return (Criteria) this;
        }

        public Criteria andIsDeleteIn(List<String> values) {
            addCriterion("is_delete in", values, "isDelete");
            return (Criteria) this;
        }

        public Criteria andIsDeleteNotIn(List<String> values) {
            addCriterion("is_delete not in", values, "isDelete");
            return (Criteria) this;
        }

        public Criteria andIsDeleteBetween(String value1, String value2) {
            addCriterion("is_delete between", value1, value2, "isDelete");
            return (Criteria) this;
        }

        public Criteria andIsDeleteNotBetween(String value1, String value2) {
            addCriterion("is_delete not between", value1, value2, "isDelete");
            return (Criteria) this;
        }

        public Criteria andAddTimeIsNull() {
            addCriterion("add_time is null");
            return (Criteria) this;
        }

        public Criteria andAddTimeIsNotNull() {
            addCriterion("add_time is not null");
            return (Criteria) this;
        }

        public Criteria andAddTimeEqualTo(String value) {
            addCriterion("add_time =", value, "addTime");
            return (Criteria) this;
        }

        public Criteria andAddTimeNotEqualTo(String value) {
            addCriterion("add_time <>", value, "addTime");
            return (Criteria) this;
        }

        public Criteria andAddTimeGreaterThan(String value) {
            addCriterion("add_time >", value, "addTime");
            return (Criteria) this;
        }

        public Criteria andAddTimeGreaterThanOrEqualTo(String value) {
            addCriterion("add_time >=", value, "addTime");
            return (Criteria) this;
        }

        public Criteria andAddTimeLessThan(String value) {
            addCriterion("add_time <", value, "addTime");
            return (Criteria) this;
        }

        public Criteria andAddTimeLessThanOrEqualTo(String value) {
            addCriterion("add_time <=", value, "addTime");
            return (Criteria) this;
        }

        public Criteria andAddTimeLike(String value) {
            addCriterion("add_time like", value, "addTime");
            return (Criteria) this;
        }

        public Criteria andAddTimeNotLike(String value) {
            addCriterion("add_time not like", value, "addTime");
            return (Criteria) this;
        }

        public Criteria andAddTimeIn(List<String> values) {
            addCriterion("add_time in", values, "addTime");
            return (Criteria) this;
        }

        public Criteria andAddTimeNotIn(List<String> values) {
            addCriterion("add_time not in", values, "addTime");
            return (Criteria) this;
        }

        public Criteria andAddTimeBetween(String value1, String value2) {
            addCriterion("add_time between", value1, value2, "addTime");
            return (Criteria) this;
        }

        public Criteria andAddTimeNotBetween(String value1, String value2) {
            addCriterion("add_time not between", value1, value2, "addTime");
            return (Criteria) this;
        }

        public Criteria andAddUserIdIsNull() {
            addCriterion("add_user_id is null");
            return (Criteria) this;
        }

        public Criteria andAddUserIdIsNotNull() {
            addCriterion("add_user_id is not null");
            return (Criteria) this;
        }

        public Criteria andAddUserIdEqualTo(Integer value) {
            addCriterion("add_user_id =", value, "addUserId");
            return (Criteria) this;
        }

        public Criteria andAddUserIdNotEqualTo(Integer value) {
            addCriterion("add_user_id <>", value, "addUserId");
            return (Criteria) this;
        }

        public Criteria andAddUserIdGreaterThan(Integer value) {
            addCriterion("add_user_id >", value, "addUserId");
            return (Criteria) this;
        }

        public Criteria andAddUserIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("add_user_id >=", value, "addUserId");
            return (Criteria) this;
        }

        public Criteria andAddUserIdLessThan(Integer value) {
            addCriterion("add_user_id <", value, "addUserId");
            return (Criteria) this;
        }

        public Criteria andAddUserIdLessThanOrEqualTo(Integer value) {
            addCriterion("add_user_id <=", value, "addUserId");
            return (Criteria) this;
        }

        public Criteria andAddUserIdIn(List<Integer> values) {
            addCriterion("add_user_id in", values, "addUserId");
            return (Criteria) this;
        }

        public Criteria andAddUserIdNotIn(List<Integer> values) {
            addCriterion("add_user_id not in", values, "addUserId");
            return (Criteria) this;
        }

        public Criteria andAddUserIdBetween(Integer value1, Integer value2) {
            addCriterion("add_user_id between", value1, value2, "addUserId");
            return (Criteria) this;
        }

        public Criteria andAddUserIdNotBetween(Integer value1, Integer value2) {
            addCriterion("add_user_id not between", value1, value2, "addUserId");
            return (Criteria) this;
        }

        public Criteria andEditTimeIsNull() {
            addCriterion("edit_time is null");
            return (Criteria) this;
        }

        public Criteria andEditTimeIsNotNull() {
            addCriterion("edit_time is not null");
            return (Criteria) this;
        }

        public Criteria andEditTimeEqualTo(String value) {
            addCriterion("edit_time =", value, "editTime");
            return (Criteria) this;
        }

        public Criteria andEditTimeNotEqualTo(String value) {
            addCriterion("edit_time <>", value, "editTime");
            return (Criteria) this;
        }

        public Criteria andEditTimeGreaterThan(String value) {
            addCriterion("edit_time >", value, "editTime");
            return (Criteria) this;
        }

        public Criteria andEditTimeGreaterThanOrEqualTo(String value) {
            addCriterion("edit_time >=", value, "editTime");
            return (Criteria) this;
        }

        public Criteria andEditTimeLessThan(String value) {
            addCriterion("edit_time <", value, "editTime");
            return (Criteria) this;
        }

        public Criteria andEditTimeLessThanOrEqualTo(String value) {
            addCriterion("edit_time <=", value, "editTime");
            return (Criteria) this;
        }

        public Criteria andEditTimeLike(String value) {
            addCriterion("edit_time like", value, "editTime");
            return (Criteria) this;
        }

        public Criteria andEditTimeNotLike(String value) {
            addCriterion("edit_time not like", value, "editTime");
            return (Criteria) this;
        }

        public Criteria andEditTimeIn(List<String> values) {
            addCriterion("edit_time in", values, "editTime");
            return (Criteria) this;
        }

        public Criteria andEditTimeNotIn(List<String> values) {
            addCriterion("edit_time not in", values, "editTime");
            return (Criteria) this;
        }

        public Criteria andEditTimeBetween(String value1, String value2) {
            addCriterion("edit_time between", value1, value2, "editTime");
            return (Criteria) this;
        }

        public Criteria andEditTimeNotBetween(String value1, String value2) {
            addCriterion("edit_time not between", value1, value2, "editTime");
            return (Criteria) this;
        }

        public Criteria andEditUserIdIsNull() {
            addCriterion("edit_user_id is null");
            return (Criteria) this;
        }

        public Criteria andEditUserIdIsNotNull() {
            addCriterion("edit_user_id is not null");
            return (Criteria) this;
        }

        public Criteria andEditUserIdEqualTo(Integer value) {
            addCriterion("edit_user_id =", value, "editUserId");
            return (Criteria) this;
        }

        public Criteria andEditUserIdNotEqualTo(Integer value) {
            addCriterion("edit_user_id <>", value, "editUserId");
            return (Criteria) this;
        }

        public Criteria andEditUserIdGreaterThan(Integer value) {
            addCriterion("edit_user_id >", value, "editUserId");
            return (Criteria) this;
        }

        public Criteria andEditUserIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("edit_user_id >=", value, "editUserId");
            return (Criteria) this;
        }

        public Criteria andEditUserIdLessThan(Integer value) {
            addCriterion("edit_user_id <", value, "editUserId");
            return (Criteria) this;
        }

        public Criteria andEditUserIdLessThanOrEqualTo(Integer value) {
            addCriterion("edit_user_id <=", value, "editUserId");
            return (Criteria) this;
        }

        public Criteria andEditUserIdIn(List<Integer> values) {
            addCriterion("edit_user_id in", values, "editUserId");
            return (Criteria) this;
        }

        public Criteria andEditUserIdNotIn(List<Integer> values) {
            addCriterion("edit_user_id not in", values, "editUserId");
            return (Criteria) this;
        }

        public Criteria andEditUserIdBetween(Integer value1, Integer value2) {
            addCriterion("edit_user_id between", value1, value2, "editUserId");
            return (Criteria) this;
        }

        public Criteria andEditUserIdNotBetween(Integer value1, Integer value2) {
            addCriterion("edit_user_id not between", value1, value2, "editUserId");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}